package jp.java.test1.pkg10_19.test11;

public class Main {
	public static void main(String[] args) {
		Sample [] array = {new Sample(10), new Sample(29)};
		Sample [] array2 = array;
		array2[1].num = 0;
		
		System.out.println(array[1].num);
	}

}
class Sample {
	int num;
	Sample(int num) {
		this.num = num;
	}
}